home *** CD-ROM | disk | FTP | other *** search
/ Light ROM 6 / LIGHT-ROM 6.iso / demos / polytran / nugraf / disk3 / data.3 / RUNTIME / SETUP.WIN < prev   
Encoding:
Text File  |  1996-11-03  |  7.3 KB  |  206 lines

  1. listscript = off;
  2. #############################################################################
  3. #                                        #
  4. #              U S E R    S E T U P   F I L E                #
  5. #                                        #
  6. # This is the user setup file. It is read in whenever the program is reset  #
  7. # or if the 'Reload Setup File' menu item is chosen. Any commands used by   #
  8. # the NuGraf Scripting Langauge is acceptable in this setup script file.    #
  9. #                                        #
  10. #############################################################################
  11.  
  12. # ---------------------------------------------------------------------------
  13. #
  14. # The following formats can be used whenever a color value is required:
  15. #
  16. #   ( rgb,  r, g, b )  where r,g,b are values in the range 0.0 to 1.0
  17. #   ( rgb2, r, g, b )  where r,g,b are integer values in the range 0 to 255
  18. #   ( hsv,  h, s, v )  where:    h = hue (0.0 to 360.0)
  19. #                s = saturation (0.0 to 1.0)
  20. #                v = lightness (0.0 to 1.0)
  21. #
  22. # ---------------------------------------------------------------------------
  23. #
  24. # The following example formats and arithmetic operators can be used wherever 
  25. # a numeric value is required (arithmetic operators can be nested as well):
  26. #
  27. #    option ( resolution = (640, 480));
  28. #    option ( resolution = (640, (400 + 80)));
  29. #    option ( resolution = (640, (-400 + 880)));
  30. #    option ( resolution = (640, (240 * 2)));
  31. #    option ( resolution = (640, (960 / 2)));
  32. #
  33. # ---------------------------------------------------------------------------
  34.  
  35. # ----------------->>>>  Default Render Output Driver  <<<<------------------
  36.  
  37. # Comment out one of the following "comment;" command pairs to enable one
  38. # of the following default output device drivers (more are available - see manual)
  39.  
  40. #
  41. # Microsoft Windows output driver options (default at start up)
  42. #
  43. #comment;
  44. outputdriver "driver1" (    # The device handle name 
  45.     framebuffer = mswindows, # The device driver name 
  46.     displaygamma=1.8,    # RGB monitor gamma correction
  47.     imagequantize (enabled=on,numcolors=236), # Turn on image quantization 
  48.     dither=on          # Turn on ordered dithering 
  49.     );
  50. #comment;
  51.  
  52. #
  53. # The following example shows how to install the GIF output driver
  54. #
  55. comment;
  56. outputdriver "driver1" (        # The device handle name 
  57.     file = (gif, "filename.gif"),     # The device driver name 
  58.     displaygamma=1.0,        # RGB gamma correction 
  59.     imagequantize (enabled=on,numcolors=256) # Turn on image quantization 
  60.     );
  61. comment;
  62.  
  63. #
  64. # This example shows how to output an 8-bit colormapped GIF-89a file with
  65. # 256 dithered colors and an image description string.
  66. #
  67. comment;
  68. outputdriver "driver1" (        # The device handle name 
  69.     file = (gif, "filename.gif"),     # The device driver name 
  70.     displaygamma=1.0,        # RGB gamma correction 
  71.     dither=on,              # Turn on ordered dithering 
  72.     optionstring = "gif89a=on",
  73.     optionstring = "imagedescription=Image created with NuGraf"
  74.     );
  75. comment;
  76.  
  77. #
  78. # The following example shows how to install the TIFF driver and set its  
  79. # parameters to output a 24-bit image with a gamma value of  1.0 (the default
  80. # value for disk images).
  81. #
  82. comment;
  83. outputdriver "driver1" (        # The device handle name 
  84.     file = (tiff, "filename.tif"),     # The device driver name 
  85.     displaygamma=1.0,        # Output gamma correction 
  86.     mode = mode_rgb            # Choose the 24-bit RGB output mode
  87.     );
  88. comment;
  89.  
  90. #
  91. # This example shows how to output a 32-bit TIFF file (24-bits of RGB
  92. # data and 8-bits of alpha channel).
  93. #
  94. comment;
  95. outputdriver "driver1" (        # The device handle name 
  96.     file = (tiff, "filename.tif"),    # The device driver name 
  97.     displaygamma=1.0,        # Output gamma correction 
  98.     mode = mode_rgba        # Choose the 32-bit RGB output mode
  99.     );
  100. comment;
  101.  
  102. #
  103. # This  example shows how to output an 8-bit colormapped TIFF file with 256 
  104. # colors that were quantized down using the Wu quantization algorithm.
  105. #
  106. comment;
  107. outputdriver "driver1" (        # The device handle name 
  108.     file = (tiff, "filename.tif"),    # The device driver name 
  109.     displaygamma=1.0,        # RGB gamma correction 
  110.     imagequantize (enabled=on,numcolors=256), # Turn on image quantization 
  111.     mode = mode_rgb,        # Choose the RGB output mode  
  112.     optionstring = "colormaplength=256"
  113.     );
  114. comment;
  115.  
  116. #
  117. # This example shows how to output an 8-bit colormapped TIFF file
  118. # with 256 dithered colors:
  119. #
  120. comment;
  121. outputdriver "driver1" (        # The device handle name 
  122.     file = (tiff, "filename.tif"),    # The device driver name 
  123.     displaygamma=1.0,        # RGB gamma correction 
  124.     imagequantize (enabled=off,numcolors=-1), # Turn off image quantization 
  125.     mode = mode_rgb,        # Choose the RGB output mode 
  126.     dither=on,            # Turn on ordered dithering 
  127.     optionstring = "colormaplength=256"
  128.     );
  129. comment;
  130.  
  131.  
  132. # ----------------------->>>>  Runtime Options  <<<<------------------------
  133.  
  134. # When 'on', bump mapping will be enabled
  135. option ( bumpmapping = on );
  136.  
  137. # When 'on', view volume clipping will be enabled for wireframe output
  138. option ( clipping = off );
  139.  
  140. # When 'on', automatic planar and cubical reflection map creation 
  141. # will first be confirmed by the user
  142. option ( confirm ( autoreflectmaps = on ));
  143.  
  144. # When 'on', all writes to existing files will first be confirmed
  145. option ( confirm ( overwrites = on ));
  146.  
  147. # When 'on', shadow map creation will first be confirmed by the user
  148. option ( confirm ( shadowmaps = on ));
  149.  
  150. # When 'on', shadows will be enabled 
  151. option ( shadows = on );
  152.  
  153. # When 'on', transparency will be enabled
  154. option ( transparency = on );
  155.  
  156. # Geometry culling mode: off, back, front
  157. option ( culling = off );
  158.  
  159. # Field rendering mode: off, upper, lower
  160. option ( field = off );
  161.  
  162. # Rendering level: wireframe, hiddenras, zscanline
  163. option ( renderlevel = zscanline );
  164.  
  165. # Image resolution
  166. option ( resolution = ( 480, 360 ));
  167.  
  168. # Global shading level: off, flat, gouraud, smooth
  169. option ( shading = smooth );
  170.  
  171. # -------------------->>>>  Texture Runtime Options  <<<<---------------------
  172.  
  173. # Global texturing enable (turning this off will disable all texture definitions)
  174. option ( texture ( enabled = on ));
  175.  
  176. # Set to 'on' to compress MIPmap files when they are written to disk
  177. option ( texture ( compressmipmap = off ));
  178.  
  179. # When 'on', all texture images will be preloaded before rendering starts
  180. option ( texture ( preload = off ));
  181.  
  182. # When 'on', MIPmap pyramid files will be saved to disk (not really necessary)
  183. option ( texture ( savemipmap = off ));
  184.  
  185. # Global texture filtering override: disabled, none, bilinear, mipmap
  186. option ( texture ( filteroverride = disabled ));
  187.  
  188. # ------------------>>>>  Default Background Colour  <<<<-------------------
  189.  
  190. # Default background color 
  191. background (color = (rgb, 0, 0, 0));
  192.  
  193. # ---------------------->>>>  File Search Paths  <<<<-----------------------
  194.  
  195. # NOTE: The file search paths are now stored in the main .ini file of this
  196. #       program rather than in this setup.win file.
  197.  
  198. # ---------------------------------------------------------------------------
  199.  
  200. listscript = on;
  201. # Welcome to the NuGraf Scripting Language
  202. #
  203. # Notes: 1) Any errors reported in this window are logged in file 'errors.log'
  204. #        2) The setup file was loaded from the 'runtime\setup.win' file
  205. #        3) Press the 'F2' key to raise this command window to the top
  206. #        4) Edit commands: ^P=previous,^N=next, etc. (see online help)